from django.db import models
from phonenumber_field.modelfields import PhoneNumberField


class User(models.Model):
    name = models.CharField(max_length=30, default='')
    age = models.IntegerField(default=0)
    addr = models.CharField(max_length=50)
    phone = models.CharField(unique=True, null=True, max_length=11, verbose_name="手机号码")
    sms_code = models.CharField(max_length=4, default='')

    class Meta:
        db_table = 'zz_User'
